package com.zx.gateway

import com.zx.boot.ZxBoot
import com.zx.boot.annotation.Server
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
import org.springframework.web.reactive.config.EnableWebFlux

/**
 * 网关启动程序
 */
@EnableWebFlux
@Server(id = "gateway", name = "网关服务", onlyServer = true, basePackages = ["com.zx.**"], exclude = [DataSourceAutoConfiguration::class])
class GatewayApplication {
    companion object {
        @JvmStatic
        fun main(args: Array<String>) {
            ZxBoot.hunt(GatewayApplication::class.java)
        }
    }
}
